import os
os.environ["OMP_NUM_THREADS"] = "1"
os.environ["OPENBLAS_NUM_THREADS"] = "1"
os.environ["MKL_NUM_THREADS"] = "1"
os.environ["NUMEXPR_NUM_THREADS"] = "1"
os.environ["ARROW_NUM_THREADS"] = "1"
import pandas as pd
import glob
import time
from multiprocessing import Pool, cpu_count
import matplotlib.pyplot as plt
import seaborn as sns
from collections import Counter, defaultdict
import numpy as np
from tqdm import tqdm
import json
import matplotlib.font_manager as fm
from typing import List, Dict, Set, Tuple, Optional
from dataclasses import dataclass
import logging

# 配置日志
logging.basicConfig(
    level=logging.INFO,
    format='%(asctime)s - %(levelname)s - %(message)s'
)
logger = logging.getLogger(__name__)

# ... [其余代码保持不变] ...

if __name__ == "__main__":
    logger.info("启动FP-Growth关联规则分析程序 (fp_growth_analysis.py)")
    main() 